﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebNext.UI.Models;
using WebNext.Domain.Entities;

namespace WebNext.UI.Utils
{
	public static class ViewTypeConverter
	{
		public static MainViewType GetViewTypeByEntryType(EntryType entryType)
		{
			switch (entryType)
			{
				case EntryType.Projects:
					return MainViewType.Projects;
				default:
					return MainViewType.Blog;
			}
		}

		public static EntryType GetEntryTypeByViewType(MainViewType viewType)
		{
			switch (viewType)
			{
				case MainViewType.Projects:
					return EntryType.Projects;
				default:
					return EntryType.Blog;
			}
		}
	}
}